package com.tql.pandian.service.impl;

import com.ruoyi.common.datasource.annotation.Master;
import com.tql.pandian.entity.PanDianPeriodShopEntity;
import com.tql.pandian.mapper.PandianPeriodShopMapper;
import com.tql.pandian.service.IPandianPeriodShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class PandianPeriodShopService implements IPandianPeriodShopService {

    @Autowired
    private PandianPeriodShopMapper pandianPeriodShopMapper;


    @Master
    @Override
    public int batchInsert(List<PanDianPeriodShopEntity> list) {
        return pandianPeriodShopMapper.batchInsertPandianPeriodShop(list);
    }

    @Master
    @Override
    public int updatePanDianPeriodShop(PanDianPeriodShopEntity entity) {
        return pandianPeriodShopMapper.updatePanDianPeriodShop(entity);
    }
}
